import Layout from '../components/Layout'

let routes = [
   
    {
        path: '/',
        component: Layout,
        redirect: {
            path: '/dashboard'
        },
        meta: {
            title: '默认首页',
            icon: 'el-icon-shopping-bag-1',
            hidden:true

        },
        children: [
            {
                path: 'dashboard',
                meta: {
                    title: '仪表盘',
                    icon: 'el-icon-film'
                },
                component: () => import('../views/dashboard')
            },
            // {
            //     path: 'user',
            //     meta:{
            //         title:'功能栏',
            //         icon:'el-icon-s-grid'
            //        },
            //     component: () => import('../components/User')
            // },
            // {
            //     path: "roter",
            //     component: () => import('../components/Roter')
            // },
        ]
    },
    {
        path: '/categ',
        component:Layout,
        meta: {
            title: '产品管理',
            icon: 'el-icon-c-scale-to-original'
        },
        children: [
            {
                path: 'Users',
                meta: {
                    title: '品类管理',
                    icon: 'el-icon-date'
                },
                component: () => import('../components/Users')

            },
            {
                path: 'active',
                meta: {
                    title: '活动管理',
                    icon: 'el-icon-edit-outline'
                },
                component: () => import('../components/Activity')
            },
            {
                path: 'product',
                meta: {
                    title: '产品管理',
                    icon: 'el-icon-document'
                },
                 component:() => import('../components/Product')
            }

        ]
    },
    {
        path: '/system',
        component: Layout,
        meta: {
            title: '系统管理',
            icon: 'el-icon-cpu'
        },
        children: [
            {
             
                        path: 'userinfo',
                        meta: {
                            title: '用户信息',
                            icon: 'el-icon-chat-round'
                        },
                        component: () => import('../views/users')
                    }, {
                        path: 'avatar',
                        meta: {
                            title: '用户头像',
                            icon: 'el-icon-s-check'
                        },
                        component: () => import('../components/Avatar')
                    }, {
                        path: 'fans',
                        meta: {
                            title: '粉丝管理',
                            icon: 'el-icon-postcard'
                        },
                        component: () => import('../components/Fourlarge'),
                        children: [
                            {
                                path: 'bigfans',
                                meta: {
                                    title: 'SVIP会员',
                                    icon: 'el-icon-video-pause'
                                },
                                component: () => import('../components/Svip')
                            }, {
                                path: 'onefans',
                                meta: {
                                    title: '一号粉丝',
                                    icon: 'el-icon-date'
                                },
                            },
                ]
            },
            {
                path: 'role',
                meta: {
                    title: '角色管理',
                    icon: 'el-icon-goods'
                },
            },
            {
                path: 'permission',
                meta: {
                    title: '权限管理',
                    icon: 'el-icon-s-goods'
                },
            },
        ]
    },
    {
        path:'/login',
        component:()=>import('../views/login'),
        meta:{
            title:'登陆页面',
            icon:'el-icon-lock',
            hidden:true
        } 
   },
]

export default routes